import request from "@/utils/request";

// 查询钢轨列表
export function listRailapi(query) {
  return request({
    url: "facility-manage/rail/selectManRailFacilityRailList",
    method: "get",
    params: query,
  });
}
// 添加钢轨列表
export function addRailapi(data) {
  return request({
    url: "facility-manage/rail/insertManRailFacilityRail",
    method: "post",
    data: data,
  });
}
// 删除钢轨
export function deleteManRailFacilityRailByIdapi(query) {
  return request({
    url: "facility-manage/rail/deleteManRailFacilityRailById",
    method: "get",
    params: query,
  });
}

// 单位的添加
export function insertManBasicUnitapi(data) {
  return request({
    url: "facility-manage/unit/insertManBasicUnit",
    method: "post",
    data: data,
  });
}
// 单位的查询
export function selectManBasicUnitListapi(query) {
  return request({
    url: "facility-manage/unit/selectManBasicUnitList",
    method: "get",
    params: query,
  });
}
// 单位的修改
export function editManBasicUnitapi(data) {
  return request({
    url: "facility-manage/unit/editManBasicUnit",
    method: "post",
    data: data,
  });
}
// 线路的添加
export function insertManBasicRailwayapi(data) {
  return request({
    url: "facility-manage/railway/insertManBasicRailway",
    method: "post",
    data: data,
  });
}
// 线路的查询
export function selectManBasicRailwayListapi(query) {
  return request({
    url: "facility-manage/railway/selectManBasicRailwayList",
    method: "get",
    params: query,
  });
}
// 线路的修改
export function editManBasicRailwayapi(data) {
  return request({
    url: "facility-manage/railway/editManBasicRailway",
    method: "post",
    data: data,
  });
}
// 行别的添加
export function insertManBasicLineTypeapi(data) {
  return request({
    url: "facility-manage/lineType/insertManBasicLineType",
    method: "post",
    data: data,
  });
}
// 行别的查询
export function selectManBasicLineTypeListapi(query) {
  return request({
    url: "facility-manage/lineType/selectManBasicLineTypeList",
    method: "get",
    params: query,
  });
}
// 行别的修改
export function editManBasicLineTypeapi(data) {
  return request({
    url: "facility-manage/lineType/editManBasicLineType",
    method: "post",
    data: data,
  });
}

// 车站的添加
export function insertManBasicStationListapi(data) {
  return request({
    url: "facility-manage/station/insertManBasicStationList",
    method: "post",
    data: data,
  });
}
// 车站的查询
export function selectManBasicStationListapi(query) {
  return request({
    url: "facility-manage/station/selectManBasicStationList",
    method: "get",
    params: query,
  });
}
// 车站的修改
export function editManBasicStationapi(data) {
  return request({
    url: "facility-manage/station/editManBasicStation",
    method: "post",
    data: data,
  });
}
